package Work0511;

public class CompanyStaff {
	private String name;
	private int age;
	private String sex;
	private String duty;
	private double salary;

	public CompanyStaff(String name, int age, String sex, String duty, double salary) {
		this.name = name;
		this.age = age;
		this.sex = sex;
		this.duty = duty;
		this.salary = salary;
	}

	public String getName() {
		return name;
	}

	public int getAge() {
		return age;
	}

	public String getSex() {
		return sex;
	}

	public String getDuty() {
		return duty;
	}

	public double getSalary() {
		return salary;
	}

	public void show() {
		System.out.println(getName() + "\t" + getAge() + "\t" + getSex() + "\t" + getDuty() + "\t" + getSalary());
	}
}
